﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DevEx
{
    class CThamSo
    {
        private static QLVTDataContext GetDc()
        {
            QLVTDataContext dc = new QLVTDataContext();
            return dc;
        }       

        public tblThamSo SelectRecordByID(String Ten_ThamSo)
        {
            QLVTDataContext dc = GetDc();

            var q = (from p in dc.tblThamSos where p.Ten_ThamSo == Ten_ThamSo select p).SingleOrDefault();
            return q;
        }
    }
}
